home *** CD-ROM | disk | FTP | other *** search
Wrap
(require (quote dll)) (provide (quote cookie)) (put (quote icookie-set-buffer-bind-dll) (quote lisp-indent-hook) 1) (defmacro icookie-set-buffer-bind-dll (collection &rest forms) (byte-code "ÄÅ!ÄÆ!ÇÈD DÉÊ DDEËÌ DDÍÎÏ\"ËDEF*" [old-buffer hnd collection forms make-symbol "old-buffer" "collection" let* (current-buffer) dll icookie-collection->dll set-buffer icookie-collection->buffer unwind-protect append (progn)] 10)) (put (quote icookie-set-buffer-bind-dll-let*) (quote lisp-indent-hook) 2) (defmacro icookie-set-buffer-bind-dll-let* (collection varlist &rest forms) (byte-code "ÅÆ!ÅÇ!ÈÉÊD DËÌ DDE\"ÍÎ DDÏÉÐ\"ÍDEF*" [old-buffer hnd collection varlist forms make-symbol "old-buffer" "collection" let* append (current-buffer) dll icookie-collection->dll set-buffer icookie-collection->buffer unwind-protect (progn)] 11)) (defmacro icookie-filter-hf (collection tin) (byte-code "ÄÅ!ÄÆ!Ç D DDÈÉÊË DEÊÌ DEEÍFE*" [tempvar tmpcoll tin collection make-symbol "tin" "tmpcollection" let if or eq icookie-collection->header icookie-collection->footer nil] 11)) (defun icookie-create-wrapper (start-marker cookie) (byte-code "ÂÃ \"B" [start-marker cookie WRAPPER vector] 4)) (defun icookie-wrapper->start-marker (wrapper) (byte-code "ÁAÂ\"" [wrapper elt 0] 3)) (defun icookie-wrapper->cookie-safe (wrapper) (byte-code "ÁAÂ\"" [wrapper elt 1] 3)) (defun icookie-wrapper->cookie (wrapper) (byte-code "ÁAÂ\"" [wrapper elt 1] 3)) (defun icookie-create-collection (buffer pretty-printer header-wrapper footer-wrapper dll) (byte-code "ÆÇ Å&B" [buffer pretty-printer header-wrapper footer-wrapper dll nil COLLECTION vector] 8)) (defun icookie-collection->buffer (collection) (byte-code "ÁAÂ\"" [collection elt 0] 3)) (defun icookie-collection->pretty-printer (collection) (byte-code "ÁAÂ\"" [collection elt 1] 3)) (defun icookie-collection->header (collection) (byte-code "ÁAÂ\"" [collection elt 2] 3)) (defun icookie-collection->footer (collection) (byte-code "ÁAÂ\"" [collection elt 3] 3)) (defun icookie-collection->dll (collection) (byte-code "ÁAÂ\"" [collection elt 4] 3)) (defun icookie-collection->last-tin (collection) (byte-code "ÁAÂ\"" [collection elt 5] 3)) (defun icookie-set-collection->buffer (collection buffer) (byte-code "AÂ I" [collection buffer 0] 3)) (defun icookie-set-collection->pretty-printer (collection pretty-printer) (byte-code "AÂ I" [collection pretty-printer 1] 3)) (defun icookie-set-collection->header (collection header) (byte-code "AÂ I" [collection header 2] 3)) (defun icookie-set-collection->footer (collection footer) (byte-code "AÂ I" [collection footer 3] 3)) (defun icookie-set-collection->dll (collection dll) (byte-code "AÂ I" [collection dll 4] 3)) (defun icookie-set-collection->last-tin (collection last-tin) (byte-code "AÂ I" [collection last-tin 5] 3)) (defun icookie-abs (x) (byte-code "[]" [x] 2)) (defun icookie-create-wrapper-and-insert (cookie string pos) (byte-code "bÆ! Ç! ÃÈ!ÈÉ!ÊË !\"*)" [pos start buffer-read-only nil string cookie markerp marker-position insert-before-markers 10 icookie-create-wrapper copy-marker] 8)) (defun icookie-create-wrapper-and-pretty-print (cookie pretty-printer pos) (byte-code "bÆ! Ç! ÃÈÉ!ÊË!Ì\"ÍÎ !\"*)" [pos start buffer-read-only nil pretty-printer cookie markerp marker-position insert-before-markers 10 backward-char 1 funcall icookie-create-wrapper copy-marker] 9)) (defun icookie-delete-tin-internal (collection tin) (byte-code "Å !ÃÆ !=
Ç Ã\"ÈÉÊH!ÉË\"ÊH!\"ÌÉÊH!Ã\"Í\"*" [dll collection buffer-read-only nil tin icookie-collection->dll icookie-collection->last-tin icookie-set-collection->last-tin delete-region icookie-wrapper->start-marker 2 dll-next set-marker dll-delete] 12)) (defun icookie-refresh-tin (collection tin) (byte-code "ÁÅÆ ÇH!ÈÆÉ \"ÇH!!S\"Æ ÇH!bÊË!Ì ÇH!\"))" [buffer-read-only nil tin dll collection delete-region icookie-wrapper->start-marker 2 marker-position dll-next funcall icookie-collection->pretty-printer icookie-wrapper->cookie] 12)) (defun icookie-pos-before-middle-p (collection pos tin1 tin2) (byte-code "Å ! ÆÇÈH!ÇÈH!\\È\"W)" [dll collection pos tin1 tin2 icookie-collection->dll / icookie-wrapper->start-marker 2] 8)) (defun collection-create (buffer pretty-printer &optional header footer pos) "\ Create an empty collection of cookies. Args: BUFFER PRETTY-PRINTER &optional HEADER FOOTER POS. The collection will be inserted in BUFFER. BUFFER may be a buffer or a buffer name. It is created if it does not exist. PRETTY-PRINTER should be a function that takes one argument, a cookie, and inserts a string representing it in the buffer (at point). The string PRETTY-PRINTER inserts may be empty or span several linse. A trailing newline will always be inserted automatically. The PRETTY-PRINTER should use insert, and not insert-before-markers. Optional third argument HEADER is a string that will always be present at the top of the collection. HEADER should end with a newline. Optionaly fourth argument FOOTER is similar, and will always be inserted at the bottom of the collection. Optional fifth argument POS is a buffer position, specifying where the collection will be inserted. It defaults to the begining of the buffer." (byte-code "ÌÍ ! ÃÃÎ %pÏ!Ð!qÑ?
% Ò?
0 Ò ?>